package cn.webrx.mapper;

import cn.webrx.entity.Book;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.cache.decorators.FifoCache;

import java.util.List;
import java.util.Map;

//@CacheNamespace(eviction = FifoCache.class, flushInterval = 60000, size = 1024, readWrite = true)
public interface BookMapper {

    @Select("select * from wx_book")
    public List<Map<String,Object>> queryAll();

    public List<Book> show();
}
